package com.example.jpademo;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 主题事件路由
 */
@Component
public class ApplicationListener_B implements ApplicationListener<Event_B> {


    @Override
    public void onApplicationEvent(Event_B b) {
        System.out.println("收到B类消息");
    }
}
